package com.jsh.service;


import com.jsh.dao.emailNumberMapper;
import com.jsh.pojo.emailNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class emailNumberServiceImpl implements emailNumberService{
    @Autowired
    emailNumberMapper emailNumberMapper;
    @Override
    public int deleteByPrimaryKey(String username) {
        return emailNumberMapper.deleteByPrimaryKey(username);
    }

    @Override
    public int insert(emailNumber record) {
        return emailNumberMapper.insert(record);
    }

    @Override
    public emailNumber selectByPrimaryKey(String username) {
        return emailNumberMapper.selectByPrimaryKey(username);
    }

    @Override
    public List<emailNumber> selectAll() {
        return emailNumberMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(emailNumber record) {
        return emailNumberMapper.updateByPrimaryKey(record);
    }
}
